/* 2018/05/22 by xiongisxiong
 * 小部件：SectionList中的每一个section的头部
 */
import React from 'react';
import { View } from 'react-native';
import { color } from '../utils';

export default SectionHeader = ({style, children}) => (
  <View style={[{height: 30, backgroundColor: color.border, paddingHorizontal: 20, flexDirection: 'row', alignItems: 'center'}, style]}>
    {children}
  </View>
)